//-----------------------------------------------------------------------
// <copyright file="ApplicationGroupCollection.cs" company="Alan Rodrigues">
//     Copyright (c) Alan Rodrigues. All rights reserved.
// </copyright>
// <developed>Alan Rodrigues (operninha@gmail.com)</developed>
//-----------------------------------------------------------------------
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.Interop.Security.AzRoles;

namespace Authorization
{
    /// <summary>
    ///  ApplicationGroupCollection
    /// </summary>
    public class ApplicationGroupCollection : Collection<ApplicationGroup>
    {

        public ApplicationGroupCollection()
        {
        }

        public ApplicationGroupCollection(IList<ApplicationGroup> list)
            : base(list)
        {
        }

        /// <param name="application">Application</param>
        /// <param name="azmanApplicationGroups">TaskCollection do Azman</param>
        /// <param name="scopeName">Name do <see cref="Scope"/></param>
        internal ApplicationGroupCollection(Application application, IAzApplicationGroups azmanApplicationGroups, string scopeName)
        {
            foreach (IAzApplicationGroup2 appGroup in azmanApplicationGroups)
            {
                Add(new ApplicationGroup(application, appGroup, scopeName));
            }
        }
    }
}